<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@page
	import="domain.CarList,domain.Car,java.util.HashMap,java.util.Set"%>

<%CarList carlist = (CarList)session.getAttribute("carlist");%>
<%String itemid= request.getParameter("itemid"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Car Details</title>
</head>
<body>

	<%HashMap<String,Car> fullinfo = carlist.getFullList();
String information = fullinfo.get(itemid).toString();%>
	<%=information %>
	</br></br>How many?
	<form Action="ShoppingCartAction" method="post">
		<input type="hidden" name = itemid value="<%=itemid %>">
		<INPUT TYPE="text" NAME="quantity" VALUE=""> 
		<input type="submit" value="Submit">
<!-- onClick="javascript:redirect('ShoppingCartAction')"		 -->
 	</form> 
		<script type="text/javascript">
	function redirect(linkid){
	opener.location.href=linkid;
	window.close();	}
	</script>
</body>
</html>